<?php


namespace app\router;

/**
 * 创建一个注释类
 *
 * Annotation表示该类是一个注解类
 * Target表示注解生效的范围(ALL,CLASS,METHOD,PROPERTY,ANNOTATION)
 *
 * @Annotation
 * @Target({"METHOD"})
 * 也可以在这里变量声明类型
 * @Attributes({
 *   @Attribute("time", type = "int")
 * })
 */
class Router
{
    /**
     * @Required()
     * @var string
     */
    public $route;

    /**
     * @Enum({"POST", "GET", "PUT", "DELETE"})
     * @var string
     */
    public $method;

    /**
     * @var array
     */
    public $param;

    public $time;


    public function __construct()
    {
    }

    public function say()
    {
        echo 'my name is func!';
    }
}